package com.ruoyix.weblog.service;

import com.ruoyix.weblog.domain.BlogWeiYan;
import com.ruoyix.weblog.domain.vo.BlogWeiYanVo;
import com.ruoyix.weblog.domain.bo.BlogWeiYanBo;
import com.ruoyix.common.core.page.TableDataInfo;
import com.ruoyix.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 微言Service接口
 *
 * @author ruoyi
 * @date 2024-05-27
 */
public interface IBlogWeiYanService {

    /**
     * 查询微言
     */
    BlogWeiYanVo queryById(Long id);

    /**
     * 查询微言列表
     */
    TableDataInfo<BlogWeiYanVo> queryPageList(BlogWeiYanBo bo, PageQuery pageQuery);

    /**
     * 查询微言列表
     */
    List<BlogWeiYanVo> queryList(BlogWeiYanBo bo);

    /**
     * 新增微言
     */
    Boolean insertByBo(BlogWeiYanBo bo);

    /**
     * 修改微言
     */
    Boolean updateByBo(BlogWeiYanBo bo);

    /**
     * 校验并批量删除微言信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
